<?php
/**
 * Created by PhpStorm.
 * User: edmmss
 * Date: 2019/1/29
 * Time: 09:43
 */

namespace app\modules\entityAttributeValue;


class Value
{
    private $_attribute;

    private $_name;

    public function __construct(Attribute $attribute, string $name)
    {
        $this->_name = $name;
        $this->_attribute = $attribute;
    }

    public function __toString(): string
    {
        // TODO: Implement __toString() method.
        return sprintf('%s: %s', $this->_attribute, $this->_name);
    }
}
